package com.zdb.order.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zdb.order.entity.Business;
import com.zdb.order.mapper.BusinessMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author Lx
 * @Date 2020/9/14 11:03
 * @Version 1.0
 */
@Service
public class BusinessService {
    @Autowired
    private BusinessMapper businessMapper;

    /**
     * 根据sid,查询商家表对象
     * @param sid
     * @return
     */
    public Business getSellerInfoById(int sid){
        Business business = businessMapper.selectOne(new QueryWrapper<Business>().eq("id", sid));
        return business;
    }
}
